package sample.model;

import java.util.List;

public class Result {
//    SUCCESS("200","成功"),
//    FAIL("201","失败");

    private String code;
    private String msg;
    private List<Object> object;


     public Result(String code, String msg){
        this.msg = msg;
        this.code = code;
    }
    public Result(){

    }
    public void setObject(List<Object> o){
         this.object = o;
    }
    public static Result success(){
         return new Result("200","success");
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<Object> getObject() {
        return object;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code='" + code + '\'' +
                ", msg='" + msg + '\'' +
                ", object=" + object +
                '}';
    }
    //    public static Result success(){
//        return ;
//    }
}
